﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true"
    CodeBehind="regUser.aspx.cs" Inherits="WebApplication1.regUser" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <style type="text/css">
        .style4
        {
            text-align: center;
        }
        .popout-dynamic
        {
            text-align: left;
        }
        .popout-dynamic
        {
            text-align: right;
        }
        .popout-dynamic
        {
            text-align: justify;
        }
    </style>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">

<div class="main">
<div class="list">
<div class="title">会员中心</div>
  <%--<h2>
        跳跳网
    </h2>
    <p style="text-align: center">
        欢迎加入数百万莘莘学子和教育机构共同信任的学习平台。</p>--%>
<div class="c fllist">
  <table width="100%" border="0" cellspacing="0" cellpadding="0">
    <tbody><tr>
      <td width="40%">
      <table width="100%" border="0" cellspacing="2" cellpadding="2">
        <tbody><tr>
          <td height="40" colspan="2" class="plnr">会员注册</td>
        </tr>
        <tr>
          <td width="24%" height="40"><a href="#">用户名</a></td>
          <td width="76%"><asp:TextBox ID="tbxUserName" runat="server" MaxLength="20" ></asp:TextBox></td>
        </tr>
        <tr>
          <td height="40"><a href="#">登陆密码</a></td>
          <td><asp:TextBox ID="tbxUserPassword" runat="server" MaxLength="20" 
                    TextMode="Password"></asp:TextBox></td>
        </tr>
        <tr>
          <td height="40">重复密码</td>
          <td><asp:TextBox ID="tbxUserPasswordRepeat" runat="server" MaxLength="20" 
                    TextMode="Password"></asp:TextBox></td>
        </tr>
        <tr>
          <td height="40">电子邮箱</td>
          <td><asp:TextBox ID="tbxUserEmail" runat="server" MaxLength="50"></asp:TextBox></td>
        </tr>
        <tr>
          <td height="40" colspan="2">
              <asp:ImageButton ID="ibUserOK" runat="server" OnClick="btnUserOK_Click" ImageUrl="images/zc.jpg" Width="189" Height="43"/>
          </td>
        </tr>
      </tbody></table></td>
      <td width="60%" valign="top" style="border-left:1px #CCCCCC dashed;">
      <table width="80%" border="0" align="center" cellpadding="2" cellspacing="2">
  
        <tr>
          <td height="40" colspan="2" class="plnr">机构学校注册</td>
        </tr>
        <tr>
          <td width="22%" height="40"><a href="#">用户名</a></td>
          <td width="78%"><asp:TextBox ID="tbxSchoolName" runat="server" MaxLength="20"></asp:TextBox></td>
        </tr>
        <tr>
          <td height="40"><a href="#">登陆密码</a></td>
          <td><asp:TextBox ID="tbxSchoolPassword" runat="server" TextMode="Password" 
                    MaxLength="20"></asp:TextBox></td>
        </tr>
        <tr>
          <td height="40"><a href="#">重复密码</a></td>
          <td><asp:TextBox ID="tbxSchoolPasswordRepeat" runat="server" TextMode="Password"
                    MaxLength="20"></asp:TextBox></td>
        </tr>
        <tr>
          <td height="40"><a href="#">电子邮箱</a></td>
          <td><asp:TextBox ID="tbxSchoolEmail" runat="server" MaxLength="50"></asp:TextBox></td>
        </tr>
        <tr>
          <td height="40" colspan="2"><asp:ImageButton ID="btnSchoolOK" runat="server" OnClick="btnSchoolOK_Click" ImageUrl="images/zc.jpg" Width="189" Height="43"/></td>
        </tr>
   </table>
   </td>
    </tr>
  </tbody></table>
</div>
</div>


</div>


    <script type="text/javascript" language="javascript">
        function testUserInput() {
            if (document.getElementById("MainContent_tbxUserName").value.length < 6) {
                alert("用户名长度至少6位");
                document.getElementById("MainContent_tbxUserName").focus();
                return false;
            }
            if (document.getElementById("MainContent_tbxUserPassword").value.length < 6) {
                alert("密码长度至少为6位");
                document.getElementById("MainContent_tbxUserPassword").focus();
                return false;
            }
            if (document.getElementById("MainContent_tbxUserPassword").value != document.getElementById("MainContent_tbxUserPasswordRepeat").value) {
                alert("两次输入的密码不同");
                document.getElementById("MainContent_tbxUserPasswordRepeat").focus();
                return false;
            }
            if (document.getElementById("MainContent_tbxUserEmail").value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1) {
                alert("邮箱格式不正确");
                document.getElementById("MainContent_tbxUserEmail").focus();
                return false;
            }
            else {
                return true;
            }
        }
        function testSchoolInput() {
            if (document.getElementById("MainContent_tbxSchoolName").value.length < 6) {
                alert("用户名长度至少6位");
                document.getElementById("MainContent_tbxSchoolName").focus();
                return false;
            }
            if (document.getElementById("MainContent_tbxSchoolPassword").value.length < 6) {
                alert("密码长度至少为6位");
                document.getElementById("MainContent_tbxSchoolPassword").focus();
                return false;
            }
            if (document.getElementById("MainContent_tbxSchoolPassword").value != document.getElementById("MainContent_tbxSchoolPasswordRepeat").value) {
                alert("两次输入的密码不同");
                document.getElementById("MainContent_tbxSchoolPasswordRepeat").focus();
                return false;
            }
            if (document.getElementById("MainContent_tbxSchoolEmail").value.search(/^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/) == -1) {
                alert("邮箱格式不正确");
                document.getElementById("MainContent_tbxSchoolEmail").focus();
                return false;
            }
            else {
                return true;
            }
        }
    </script>
</asp:Content>
